From c1f075f22c70de54c2b04ca5df008a5e406d3ca9 Mon Sep 17 00:00:00 2001 From: Daniel Sabo Date: Sat, 1 Feb 2014 23:13:28 -0800 Subject: [PATCH] tests: Use rand when random is unavailable --- tests/babl_fish_path_fitness.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/babl_fish_path_fitness.c b/tests/babl_fish_path_fitness.c index 8480fc0..bab17d6 100644 --- a/tests/babl_fish_path_fitness.c +++ b/tests/babl_fish_path_fitness.c @@ -6,6 +6,11 @@ #include #include "babl-internal.h" +#ifndef HAVE_SRANDOM +#define srandom srand +#define random rand +#endif + #define pixels 1024 int total_length = 0; int total_cost = 0; -- 2.30.2